<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>批量处理党员缴费</title>
  <link rel="stylesheet" href="../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../yl/style.css" />
  <link rel="stylesheet" href="../../yl/mobile.css" />
  <link rel="stylesheet" href="../../yl/easyui.css" />
  <link rel="stylesheet" href="../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar" v-cloak>
        <div class="m-title">批量处理党员缴费</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'party_fees', 'form': 'FeetableDataCommit', 'primary_key':'Party_Fee_SerialNumber' })">
      <div class="yl-main" v-cloak>
        <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">

          <el-descriptions :column="2" size="large" border>

            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">缴费日期：</div>
              </template>
              <el-form-item prop="Fee_Date" :rules="[{ required: true, message: '请输入日期', trigger: 'blur' }]">

                <el-date-picker @change="changeFee_Date" v-model="dataForm.Fee_Date" format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD" class="borderless-input" type="date" placeholder="请选择缴费日期" size="large" />
              </el-form-item>
            </el-descriptions-item>

            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">归属期间：</div>
              </template>
              <el-form-item prop="Belonginterval" :rules="[{ required: true, message: '请选择归属期间', trigger: 'blur' }]">

                <el-date-picker v-model="dataForm.Belonginterval" format="YYYY-MM" value-format="YYYY-MM"
                  class="borderless-input" type="month" placeholder="请选择归属期间" size="large" />
              </el-form-item>
            </el-descriptions-item>



            <el-descriptions-item :span="2">
              <template #label>
                <div class="cell-item">党组织：</div>
              </template>
              <el-form-item prop="Party_Organization_SerialNumber"
                :rules="[{ required: true, message: '请输入任务名称', trigger: 'blur' }]">
                <el-cascader clearable @change="changeOrganization" filterable style="width: 100%;"
                  v-model="dataForm.Party_Organization_SerialNumber" :options="Organization" :props="{ emitPath: false,
                          value: 'value', 
                          label: 'label',
                          children: 'children',checkStrictly: false }" clearable></el-cascader>
              </el-form-item>
            </el-descriptions-item>

          </el-descriptions>

          <el-button type="primary" style="margin-top: 20px; width: 120px;" @click="SelectAll()">全缴</el-button>
          <el-button type="primary" style="margin-top: 20px; width: 120px;" @click="SelectNone()">取消全缴</el-button>
          
          <el-table :data="FeetableData" border style="width: 100%;margin-top: 20px;">
            <el-table-column prop="ID_Card_Number" label="身份证编号" align="center">
            </el-table-column>
            <el-table-column prop="Personal_Name" label="队员姓名" align="center">
            </el-table-column>
            <el-table-column prop="Contact_Phone" label="联系电话" align="center">
            </el-table-column>
            <el-table-column prop="Fee_Date" label="缴费日期" align="center">
            </el-table-column>
            <el-table-column prop="Belonginterval" label="归属期间" align="center">
            </el-table-column>
         
            <el-table-column prop="bFee" width="100" label="缴费状态">
              <template #default="{ row }">
                <el-switch v-model="row.bFee" active-color="#13ce66" inactive-color="#ff4949" active-value="1"
                  inactive-value="0" @change="handleSelect(row)">
                </el-switch>
              </template>
            </el-table-column>
            <el-table-column prop="FeeType" width="100" label="是否补缴">
              <template #default="{ row }">
                <el-switch v-model="row.FeeType" active-color="#13ce66" inactive-color="#ff4949" active-value="1"
                  inactive-value="0" >
                </el-switch>
              </template>
            </el-table-column>
          </el-table>
        </el-form>
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" :loading="loading" plain @click="handleSubmit1">提交</el-button>
      <el-button type="primary" :loading="loading" plain  @click="HarryFee()">一键催缴</el-button>
    </footer>
  </div>
</body>
<script src="../../utils/utils.js"></script>
<script src="../../utils/compressor.js"></script>
<script src="../../utils/wangeditor.js"></script>
<script src="../../config/config.js"></script>
<script src="../../utils/mixins.js"></script>
<script src="../../yl/vue.js"></script>
<script src="../../yl/index.js"></script>
<script src="../../yl/zh-cn.mjs"></script>
<script src="../../yl/index.iife.min.js"></script>
<script src="../../yl/jquery.min.js"></script>
<script src="../../utils/jquery.cookie.js"></script>
<script src="../../yl/jquery.easyui.min.js"></script>
<script src="../../yl/jquery.easyui.mobile.js"></script>
<script src="../../yl/moment.min.js"></script>
<script src="../../api/request.js"></script>
<script src="./js/addBatch.js"></script>

</html>